//登录，账号信息相关接口
import http from '../http';

//登录
export function login (params) {
    return http({
        url: "/user/logIn",
        method: "post",
        data:params
    })
}

//注册
export function register(params) {
    return http({
        url: "/user/register",
        method: "post",
        data:params
    })
}
//登录退出
export function logout () {
    return http({
        url: "/user/logOut",
        method: "post",
    })
}

//获取验证码
export function captcha (params) {
    return http({
        url: "/frame/verify_code.do",
        method: "post",
        params:params
    })
}

//获取用户单条数据
export function accountQuery(params) {
    return http({
        url: "/api/ltd/admin",
        method: "GET",
        params: params
    })
}

//修改账号信息
export function accountEdit(data) {
    return http({
        url: "/api/ltd/admin",
        method: "post",
        data: data
    })
}

//加载动态路由
export function loadRouters(data) {
    return http({
        url: "/resource/loadingResources",
        method: "post",
        data: data
    })
}


